package cn.com.api.service.impl.base;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_token;

import cn.com.api.mapper.ApiT_tokenMapper;

import cn.com.api.service.ApiT_tokenService;

/**
 * 
 **/
@Service
public class T_tokenServiceImplBase {
	@Autowired
	private ApiT_tokenMapper apiT_tokenMapper;

	// 根据id获取
	public ApiT_token findT_tokenById(Integer id) {
		ApiT_token t_token = apiT_tokenMapper.findT_tokenById(id);
		return t_token;
	}

	// 查看数据集
	public List<ApiT_token> findT_tokens() {
		List<ApiT_token> t_tokens = apiT_tokenMapper.findT_tokens();
		return t_tokens;
	}

	// 添加
	public int insertT_token(ApiT_token t_token) {
		int ret_I = apiT_tokenMapper.insertT_token(t_token);
		return ret_I;
	}

	// 修改
	public int updateT_token(ApiT_token t_token) {
		int ret_I = apiT_tokenMapper.updateT_token(t_token);
		return ret_I;
	}

	// 删除
	public int deleteT_token(Integer id) {
		int ret_I = apiT_tokenMapper.deleteT_token(id);
		return ret_I;
	}

	// Foreign keys revelant

	// region Indexs revelant

}
